package com.graduationproject.examonline.teacher.mapper;

import com.graduationproject.examonline.teacher.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

// 使用注解Mapper实例化接口
@Mapper
@Repository
public interface TeacherMapper {
    public List<Teacher> findTeacherByIdAndPassword(Map<String, Object> params);
    public int insertTeacher(Map<String, Object> params);
    public List<Teacher> getUserInfo(String teach_id);
    public int updateById(Map<String, Object> params);
    public List<Teacher> getAllUserInfo();
}
